s = input("输入一段字符:")
alpha = 0
space = 0
others = 0
digit = 0
for c in s:
    if c.isalpha():
        alpha+=1
    elif c.isspace():
        space+=1
    elif c.isdigit():
        digit+=1
    else:
        others+=1
print('char=%d,space=%d,digit=%d,others=%d'%(alpha,space,digit,others))